<%@ Page Language="VB" AutoEventWireup="false" CodeFile="HigherorderMenu.aspx.vb"
    Inherits="HigherorderMenu" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Untitled Page</title>
    <link href="Style/global.css" media="all" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div id="divMain">
            <div align="center">
                <br />
                <asp:Literal ID="litBack" runat="server"></asp:Literal></div>
            <div align="center">
                <h2><asp:Literal ID="litHeading" runat="server"></asp:Literal></h2>
            </div>
            <div>
                <asp:DataList ID="dlSubMenu" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"
                    CellSpacing="5" HorizontalAlign="Left">
                    <ItemTemplate>
                        <a id="<%#Eval("MenuID")%>"
                            href="<%#Eval("Href")%>" onclick="OpenHigherorderMenu(this,'<%=Request("ParentID")%>');"
                            target="<%#Eval("Target")%>" title="<%#Eval("Text")%>"><img src="<%#ResolveUrl(Eval("Image"))%>" border="0" /><%#Eval("Text")%></a>
                    </ItemTemplate>
                </asp:DataList>
                <div align="center"><asp:Literal ID="litMessage" runat="server"></asp:Literal></div>
            </div>
        </div>

        <script language="javascript" type="text/javascript">
        PopulateParent = function(){
        try{
            window.parent.document.getElementById('<%=Request("Container") %>').innerHTML = document.getElementById('divMain').innerHTML;
            }catch(e){}
        };
        PopulateParent();
        </script>

    </form>
</body>
</html>
